class Actions {
  actions:any = null
  constructor() {

  }
  // 默认值为空Action

  // 设置actions
  setActions(actions:any) {
    if(!this.actions){
      this.actions = actions
    }
  }

  // 映射
  onGlobalStateChange(...args:any) {
      return this.actions?.onGlobalStateChange(...args)
  }
  // 映射
  setGlobalState(...args:any) {
      return this.actions?.setGlobalState(...args)
  }
}

const actions = new Actions()
export default actions
